<html>
<head>

    <title>Upload Form</title>
    <!--
    http://cdn.bootcss.com/jquery/1.8.3/jquery.js
    -->
    <script type="text/javascript" src="/static/lib/jquery-1.8.3.js"></script>
    <script>
       //alert(1122);
        $(document).ready(function(){
           $.ajax({
                'url':'<?php echo site_url("api/helper/login")?>',
                'type':'post',
                'data':{'account':'ceshi','password':'ceshi'},
                'dataType':'json',
                'success':function(data){
                    alert(data.status);
                }
            });
        });
    </script>
</head>
<body>


<form action="<?php echo site_url('api/example/users')?>" method="post">
    <input name="id" type="text">
    i<input type="submit" value="test" />
</form>
</body>
</html>
